package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 平台热词统计对象 hot_words
 * 
 * @author ruoyi
 * @date 2025-03-08
 */
public class HotWords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 热词唯一ID（主键） */
    private Long wordId;

    /** 关键词内容 */
    @Excel(name = "关键词内容")
    private String word;

    /** 关键词出现频率 */
    @Excel(name = "关键词出现频率")
    private Long frequency;

    /** 统计开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "统计开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 统计结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "统计结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setWordId(Long wordId) 
    {
        this.wordId = wordId;
    }

    public Long getWordId() 
    {
        return wordId;
    }

    public void setWord(String word) 
    {
        this.word = word;
    }

    public String getWord() 
    {
        return word;
    }

    public void setFrequency(Long frequency) 
    {
        this.frequency = frequency;
    }

    public Long getFrequency() 
    {
        return frequency;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("wordId", getWordId())
            .append("word", getWord())
            .append("frequency", getFrequency())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
